package com.jdojo.stage;

import javafx.application.Application;
import javafx.stage.Stage;

/**
 * @author zhufeifei
 * @date 2024-04-18 14:47
 */
public class ShortLivedApp extends Application {
    public static void main(String[] args) {
        Application.launch(args);
    }

    @Override
    public void start(Stage stage) {
        // Platform.exit(); // Exit the application
        // stage.close(); // Close the only stage you have
        stage.show(); // First show the stage
        stage.close(); // Now close it
    }
}